package com.mg.game.content.gamescreen;

import android.graphics.Color;

import com.mg.framework.kernel.GameStage;
import com.mg.framework.kernel.Screen;
import com.mg.framework.tiled.Map;

public class TaskMap extends GameStage {

	private Map map;

	public TaskMap(Screen screen) {
		super(screen, 1, 1);
	}
	
	public void setMap(Map map){
		this.map = map;
		setMapAreaWidthHeight(map.getMapWidth(), map.getMapHeight());
		setRatio(((float) this.screen.height - 20) / ((float) this.height));
		this.setX(this.screen.getXCenter() - this.width / 2);
		this.setY(this.screen.getYCenter() - this.height / 2);
	}

	@Override
	public void mapUpdate() {
		drawColor(Color.BLACK);
		drawBitmap(this.map.getMapBitmap());
	}

	@Override
	public void gameUpdate() {
		
	}
}
